Optimal. Leaf size=263 \[ \frac {c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^n\right )^{1+q} \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^n\right )}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}\right )}{a \left (2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e\right ) n (1+q)}+\frac {c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^n\right )^{1+q} \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^n\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{a \left (2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e\right ) n (1+q)}-\frac {\left (d+e x^n\right )^{1+q} \, _2F_1\left (1,1+q;2+q;1+\frac {e x^n}{d}\right )}{a d n (1+q)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.53, antiderivative size = 263, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {1488, 974, 67,
844, 70} \begin {gather*} \frac {c \left (\frac {b}{\sqrt {b^2-4 a c}}+1\right ) \left (d+e x^n\right )^{q+1} \, _2F_1\left (1,q+1;q+2;\frac {2 c \left (e x^n+d\right )}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}\right )}{a n (q+1) \left (2 c d-e \left (b-\sqrt {b^2-4 a c}\right )\right )}+\frac {c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^n\right )^{q+1} \, _2F_1\left (1,q+1;q+2;\frac {2 c \left (e x^n+d\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{a n (q+1) \left (2 c d-e \left (\sqrt {b^2-4 a c}+b\right )\right )}-\frac {\left (d+e x^n\right )^{q+1} \, _2F_1\left (1,q+1;q+2;\frac {e x^n}{d}+1\right )}{a d n (q+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 70
Rule 844
Rule 974
Rule 1488
Rubi steps
\begin {align*} \int \frac {\left (d+e x^n\right )^q}{x \left (a+b x^n+c x^{2 n}\right )} \, dx &=\frac {\text {Subst}\left (\int \frac {(d+e x)^q}{x \left (a+b x+c x^2\right )} \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \left (\frac {(d+e x)^q}{a x}+\frac {(-b-c x) (d+e x)^q}{a \left (a+b x+c x^2\right )}\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \frac {(d+e x)^q}{x} \, dx,x,x^n\right )}{a n}+\frac {\text {Subst}\left (\int \frac {(-b-c x) (d+e x)^q}{a+b x+c x^2} \, dx,x,x^n\right )}{a n}\\ &=-\frac {\left (d+e x^n\right )^{1+q} \, _2F_1\left (1,1+q;2+q;1+\frac {e x^n}{d}\right )}{a d n (1+q)}+\frac {\text {Subst}\left (\int \left (\frac {\left (-c-\frac {b c}{\sqrt {b^2-4 a c}}\right ) (d+e x)^q}{b-\sqrt {b^2-4 a c}+2 c x}+\frac {\left (-c+\frac {b c}{\sqrt {b^2-4 a c}}\right ) (d+e x)^q}{b+\sqrt {b^2-4 a c}+2 c x}\right ) \, dx,x,x^n\right )}{a n}\\ &=-\frac {\left (d+e x^n\right )^{1+q} \, _2F_1\left (1,1+q;2+q;1+\frac {e x^n}{d}\right )}{a d n (1+q)}-\frac {\left (c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \text {Subst}\left (\int \frac {(d+e x)^q}{b+\sqrt {b^2-4 a c}+2 c x} \, dx,x,x^n\right )}{a n}-\frac {\left (c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right )\right ) \text {Subst}\left (\int \frac {(d+e x)^q}{b-\sqrt {b^2-4 a c}+2 c x} \, dx,x,x^n\right )}{a n}\\ &=\frac {c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^n\right )^{1+q} \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^n\right )}{2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}\right )}{a \left (2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e\right ) n (1+q)}+\frac {c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \left (d+e x^n\right )^{1+q} \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^n\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{a \left (2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e\right ) n (1+q)}-\frac {\left (d+e x^n\right )^{1+q} \, _2F_1\left (1,1+q;2+q;1+\frac {e x^n}{d}\right )}{a d n (1+q)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.57, size = 218, normalized size = 0.83 \begin {gather*} \frac {\left (d+e x^n\right )^{1+q} \left (\frac {c \left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^n\right )}{2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e}\right )}{2 c d+\left (-b+\sqrt {b^2-4 a c}\right ) e}+\frac {c \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \, _2F_1\left (1,1+q;2+q;\frac {2 c \left (d+e x^n\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}\right )}{2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}-\frac {\, _2F_1\left (1,1+q;2+q;1+\frac {e x^n}{d}\right )}{d}\right )}{a n (1+q)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {\left (d +e \,x^{n}\right )^{q}}{x \left (a +b \,x^{n}+c \,x^{2 n}\right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (d + e x^{n}\right )^{q}}{x \left (a + b x^{n} + c x^{2 n}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (d+e\,x^n\right )}^q}{x\,\left (a+b\,x^n+c\,x^{2\,n}\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________